Page 1 of 2 12 LastLast
Results 1 to 15 of 25

Thread: Database su un file solo

  1. #1
    Ensign Hardcore's Avatar
    Join Date
    Sep 2006
    Location
    Modena
    Posts
    3.550

    Default Database su un file solo

    Ok il titolo è alquanto criptico lo ammetto...L'idea che mi è sorta parte da un problema con un software che ho sviluppato, il mio programma si appoggia su MySql, ma alla fine della fiera deve gestire al piu 4 Tabelle e in cui una sola, la piu grande arriverà al max in 4-5 anni a 300 righe. Ora ogni volta che voglio installare tale programma devo prima passare per l'installazione di MySql. Mi chiedevo se esistesse qualche tipo di file particolare (XML??) che permetta la creazione di tabelle su di esso e che tramite funzioni scorrerlo.


  2. #2
    Lieutenant Junior Grade Eltarion's Avatar
    Join Date
    Dec 2004
    Location
    Venaria
    Posts
    4.085

    Default

    un file txt e ti fai la classe per gestirlo...

    Realm Of Trollers
    while ( ! ( succeed = try() ) );
    Spoiler

  3. #3
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Potresti usare un file access, no?

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


  4. #4
    Lieutenant Commander Bakaras's Avatar
    Join Date
    Apr 2004
    Location
    Roma
    Posts
    9.562

    Default

    300 righe basta un file di testo.

    Once upon a time....
    Bakaras Night elf Warrior DragonLance on WOW server DAGGERSPINE
    Bakaras Fjellstorm Nordic healer 4lx Guildmaster DrL on Daoc server Lancelot
    Bakaras Fjellstorm Troll skald 6lx Guildmaster DragonLance on Daoc server Vortigern
    Viridian Fjellstorm Nordico healer 4lx Guildmaster Dragonlance on Daoc server Vortigern

    Quote Originally Posted by peluche View Post
    quindi burino e onesto...mai pensato di farla finita?

  5. #5
    Chief Petty Officer
    Join Date
    Jan 2004
    Location
    Trento
    Posts
    1.127

    Default

    l'xml e' stato pensato per quello in teoria...
    Jeff
    "I'm not a stranger, I'm just a friend you haven't met yet"
    "il bello degli ingegneri è che hanno sempre una dote non sfruttata che un’altra parte di mondo avrebbe usato per guadagnarci i milioni. L’ingegnere no, fa calcoli. Fenomenale."
    "This program had an unexpected end. What I have to do? [R]etry, [I]gnor or [C]ancel?" "C[a]re a saw"

  6. #6
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Ok ma se poi qualcuno vuole farci su query esterne all'applicazione? Boh lungi da me voler consigliare qualcosa della M$ però per una cosa del genere potrebbe essare una buona soluzione no?
    (non vi dico cosa ho dovuto importare io da access... uno pensa che le grandi aziende abbiano strumenti seri e poi vede ste cose e si fa N grasse risate )

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


  7. #7
    Chief Petty Officer
    Join Date
    Jan 2004
    Location
    Trento
    Posts
    1.127

    Default

    Il tuo programmino in cosa e' scritto? Piu' o meno ogni linguaggio ha classi/routine per la lettura di file XML... o, alla peggio, ti fai davvero un txt
    Jeff
    "I'm not a stranger, I'm just a friend you haven't met yet"
    "il bello degli ingegneri è che hanno sempre una dote non sfruttata che un’altra parte di mondo avrebbe usato per guadagnarci i milioni. L’ingegnere no, fa calcoli. Fenomenale."
    "This program had an unexpected end. What I have to do? [R]etry, [I]gnor or [C]ancel?" "C[a]re a saw"

  8. #8
    Petty Officer 3rd Class rosc's Avatar
    Join Date
    Mar 2004
    Posts
    273

    Default

    I miei colleghi hanno usato linq per la gestione di query su file xml (su file abbastanza corposi) e ne son rimasti soddisfatti; vedi se è disponibile nel linguaggio che stai adoperando.
    Daoc Ywain (off):
    Jamello, nightshade
    Shashamano, shaman
    Thorello, thane
    LOL USA (off)
    Jamello
    LOL EU (off)
    Jamelloo

  9. #9
    Lieutenant
    Join Date
    Feb 2004
    Location
    Bresso
    Posts
    4.683

    Default

    Quote Originally Posted by Tanek View Post
    Ok ma se poi qualcuno vuole farci su query esterne all'applicazione? Boh lungi da me voler consigliare qualcosa della M$ però per una cosa del genere potrebbe essare una buona soluzione no?
    (non vi dico cosa ho dovuto importare io da access... uno pensa che le grandi aziende abbiano strumenti seri e poi vede ste cose e si fa N grasse risate )
    Se e' in xml ci puoi accedere in vari modi praticamente con qualsiasi linguaggio che non risalga al giurassico.

  10. #10
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Non saprei, non ho mai usato file xml come database (ma mi fido, ovviamente :P )

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


  11. #11
    Chief Petty Officer
    Join Date
    Jan 2004
    Location
    Trento
    Posts
    1.127

    Default

    E' molto semplice

    In che linguaggio stai sviluppando?
    Jeff
    "I'm not a stranger, I'm just a friend you haven't met yet"
    "il bello degli ingegneri è che hanno sempre una dote non sfruttata che un’altra parte di mondo avrebbe usato per guadagnarci i milioni. L’ingegnere no, fa calcoli. Fenomenale."
    "This program had an unexpected end. What I have to do? [R]etry, [I]gnor or [C]ancel?" "C[a]re a saw"

  12. #12
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Io in Java, l'autore del thread non lo so
    (sono curioso, ma comunque a me non serve :P )

    ps:
    Code:
    public abstract class Action300 extends DispatchAction { 
    //THIS IS SPARTAAAAAAAA!!!

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


  13. #13
    Lieutenant Commander Rayvaughan's Avatar
    Join Date
    Mar 2005
    Location
    45.663989,8.783906
    Posts
    17.274

    Default

    Quote Originally Posted by Eltarion View Post
    un file txt e ti fai la classe per gestirlo...

    fatto come esercizio, con relative programmazioni di query sopra... 2 cojoni

  14. #14
    Lieutenant
    Join Date
    Jan 2007
    Location
    Roma
    Posts
    4.723

    Default

    Concordo su un file XML. Lo puoi leggere praticamente con ogni cosa e finche ci son pochi dati va piu che bene anche a livello di performance.

    Edit : http://en.wikipedia.org/wiki/XML_database


    @ TanekFirma ma davvero avete 300 classi che si chiamano ActionN ? Chissa che divertimento ricordarsi cosa fanno
    Last edited by Amiag; 18th March 2010 at 17:16.

    Last Exile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Unknowns
    Nuida FollettoInLutto Bard Tiarna . . . . . . . . . . . . . . . . Deo The Undaunted Rune Priest
    Amiag Blademaster Silver Hand. . . . . . . . . . . . . . Viol The Sacrificed Shadow Warrior
    Viola Vampiir Grove Protector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    Nero Incubus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DarkBane
    Naida Cabalist Phoenix Knight. . . . . . . . . . . . . . . . . . . . . . . . . . . . Viole No-Stealth Scout

  15. #15
    Lieutenant Junior Grade Eltarion's Avatar
    Join Date
    Dec 2004
    Location
    Venaria
    Posts
    4.085

    Default

    Quote Originally Posted by Rayvaughan View Post
    fatto come esercizio, con relative programmazioni di query sopra... 2 cojoni
    dev'essere un esercizio comune aper molti professori allora
    Realm Of Trollers
    while ( ! ( succeed = try() ) );
    Spoiler

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[Output: 117.61 Kb. compressed to 102.38 Kb. by saving 15.23 Kb. (12.95%)]